@filterSize: 100px;
@defaultBgColor: #444;
@borderColor: #888;
@currentBgColor: #6A6A6A;
@hoverColor: #9A9A9A;


.mcn-cordova.mcn-tabpages, .mcn-cordova.mcn-tabpages.arrowright {
    @headeritemsize: 80px;
    width: 100%;
    height: 100%;
    position: relative;
    display: block;

    .mcn-tabpages-content {
        position: absolute;
        left: @headeritemsize;
        top: 0;
        right: 0;
        bottom: 0;
        height: auto;
        width: auto;

        .fragment {
            @headersize: 90px;

            header[role=banner] {
                color: white;
                height: @headersize;
                margin-left: 120px;
                margin-top: 65px;
                padding: 0 20px;

                .win-backbutton, .win-navigation-backbutton {
                    display: block;
                    margin-right: 20px;
                    font-size: 28pt;
                    height: @headersize;
                    line-height: @headersize;

                    &:disabled {
                        display: none;
                    }
                }

                .titlearea {
                    height: @headersize;
                    line-height: @headersize;
                    width: auto;
                    padding: 0;
                    margin-top: 0;
                    font-size: 42pt;

                    .pagetitle {
                        line-height: @headersize;
                        font-weight: normal;
                        text-transform: uppercase;
                    }
                }
            }

            section[role=main] {
                top: 0;
            }
        }
    }

    .mcn-tabpages-header {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: @headeritemsize;

        .mcn-tabpages-headergroup {
            .mcn-tabpages-headeritem {
                .tabheader {
                    width: @headeritemsize;
                    height: @headeritemsize;
                    padding-top: 14px;
                    box-sizing: border-box;

                    i {
                        display: block;
                        text-align: center;
                        font-size: 26pt;
                        line-height: 1em;
                    }

                    .title {
                        font-size: 9pt;
                        text-align: center;
                        opacity: 0.8;
                    }
                }
            }
        }
    }
}


.mcn-tabpages {


    .mcn-tabpages-header {
        background-color: @defaultBgColor;
        color: white;


        .mcn-tabpages-headeritem {
            position: relative;
            transition: background-color 167ms ease-in-out;

            &.current {
                background-color: @currentBgColor;
            }

            &:hover {
                background-color: @hoverColor;
            }
        }
    }

    .mcn-tabpages-content {
        overflow: hidden;
    }
}

.mcn-tabpages.arrowright {
    display: -ms-grid;
    -ms-grid-rows: 1fr;
    -ms-grid-columns: auto 1fr;

    .mcn-tabpages-header {
        .mcn-tabpages-headeritem {
            border-bottom: 1px solid @borderColor;

            &.current {
                &:after, &:before {
                    left: 100%;
                    border: solid transparent;
                    content: " ";
                    height: 0;
                    width: 0;
                    position: absolute;
                    pointer-events: none;
                }

                &:after {
                    border-color: rgba(136, 183, 213, 0);
                    border-left-color: @currentBgColor;
                    border-width: 8px;
                    top: 50%;
                    margin-top: -8px;
                }

                &:before {
                    border-color: rgba(194, 225, 245, 0);
                    border-left-color: @currentBgColor;
                    border-width: 8px;
                    top: 50%;
                    margin-top: -8px;
                }

                &:hover {
                    &:after, &:before {
                        border-left-color: @hoverColor;
                    }
                }
            }
        }
    }

    .mcn-tabpages-content {
        width: 100%;
        height: 100%;
        overflow: hidden;
        -ms-grid-column: 2;
        display: -ms-grid;
        -ms-grid-rows: 1fr;
        -ms-grid-columns: 1fr;

        & > .mcn-tabpages-page {
            width: 100%;
            height: 100%;
            /*height: ~"calc(100% + 15px)";*/
            position: relative;
            overflow: hidden;
            padding: 0;
            margin: 0;
            /*margin-top: -15px;*/
            box-sizing: border-box;
        }
    }
}
